
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont rws-cancel"></i>
                    <div class="name">勾</div>
                    <div class="fontclass">.rws-cancel</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-caution"></i>
                    <div class="name">警示</div>
                    <div class="fontclass">.rws-caution</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-no-data"></i>
                    <div class="name">无数据</div>
                    <div class="fontclass">.rws-no-data</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-icon-test"></i>
                    <div class="name">禁用</div>
                    <div class="fontclass">.rws-icon-test</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-man"></i>
                    <div class="name">男</div>
                    <div class="fontclass">.rws-man</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-more"></i>
                    <div class="name">更多</div>
                    <div class="fontclass">.rws-more</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-search"></i>
                    <div class="name">搜索</div>
                    <div class="fontclass">.rws-search</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-star"></i>
                    <div class="name">星</div>
                    <div class="fontclass">.rws-star</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-setting"></i>
                    <div class="name">设置</div>
                    <div class="fontclass">.rws-setting</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-women"></i>
                    <div class="name">女</div>
                    <div class="fontclass">.rws-women</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-delete"></i>
                    <div class="name">删 除</div>
                    <div class="fontclass">.rws-delete</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-card"></i>
                    <div class="name">card</div>
                    <div class="fontclass">.rws-card</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-dishes"></i>
                    <div class="name">dishes</div>
                    <div class="fontclass">.rws-dishes</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-termination-forbid"></i>
                    <div class="name">termination-forbid</div>
                    <div class="fontclass">.rws-termination-forbid</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-location"></i>
                    <div class="name">location</div>
                    <div class="fontclass">.rws-location</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-money"></i>
                    <div class="name">money</div>
                    <div class="fontclass">.rws-money</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-hotel"></i>
                    <div class="name">hotel</div>
                    <div class="fontclass">.rws-hotel</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-dollar"></i>
                    <div class="name">dollar</div>
                    <div class="fontclass">.rws-dollar</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-message"></i>
                    <div class="name">message</div>
                    <div class="fontclass">.rws-message</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-user"></i>
                    <div class="name">user</div>
                    <div class="fontclass">.rws-user</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-ticket"></i>
                    <div class="name">ticket</div>
                    <div class="fontclass">.rws-ticket</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-time"></i>
                    <div class="name">time</div>
                    <div class="fontclass">.rws-time</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-collect"></i>
                    <div class="name">collect</div>
                    <div class="fontclass">.rws-collect</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-arrow-down"></i>
                    <div class="name">arrow-down</div>
                    <div class="fontclass">.rws-arrow-down</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-nationality"></i>
                    <div class="name">nationality</div>
                    <div class="fontclass">.rws-nationality</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-species"></i>
                    <div class="name">species</div>
                    <div class="fontclass">.rws-species</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-churn"></i>
                    <div class="name">churn</div>
                    <div class="fontclass">.rws-churn</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-arrow-up"></i>
                    <div class="name">arrow-up</div>
                    <div class="fontclass">.rws-arrow-up</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-residence"></i>
                    <div class="name">residence</div>
                    <div class="fontclass">.rws-residence</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-go-up"></i>
                    <div class="name">go-up</div>
                    <div class="fontclass">.rws-go-up</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-room"></i>
                    <div class="name">room</div>
                    <div class="fontclass">.rws-room</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-gift"></i>
                    <div class="name">gift</div>
                    <div class="fontclass">.rws-gift</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-birthday"></i>
                    <div class="name">birthday</div>
                    <div class="fontclass">.rws-birthday</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-question"></i>
                    <div class="name">question</div>
                    <div class="fontclass">.rws-question</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-decline"></i>
                    <div class="name">decline</div>
                    <div class="fontclass">.rws-decline</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-none-collect"></i>
                    <div class="name">none-collect</div>
                    <div class="fontclass">.rws-none-collect</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-consume"></i>
                    <div class="name">consume</div>
                    <div class="fontclass">.rws-consume</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-eye"></i>
                    <div class="name">eye</div>
                    <div class="fontclass">.rws-eye</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-language"></i>
                    <div class="name">language</div>
                    <div class="fontclass">.rws-language</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-none-customer"></i>
                    <div class="name">none-customer</div>
                    <div class="fontclass">.rws-none-customer</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-certificate"></i>
                    <div class="name">certificate</div>
                    <div class="fontclass">.rws-certificate</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-flat"></i>
                    <div class="name">flat</div>
                    <div class="fontclass">.rws-flat</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-decline1"></i>
                    <div class="name">decline</div>
                    <div class="fontclass">.rws-decline1</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-forbidden"></i>
                    <div class="name">forbidden</div>
                    <div class="fontclass">.rws-forbidden</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-line-message"></i>
                    <div class="name">line-message</div>
                    <div class="fontclass">.rws-line-message</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-grow"></i>
                    <div class="name">grow</div>
                    <div class="fontclass">.rws-grow</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-hand"></i>
                    <div class="name">hand</div>
                    <div class="fontclass">.rws-hand</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-line-phone"></i>
                    <div class="name">line-phone</div>
                    <div class="fontclass">.rws-line-phone</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-screen"></i>
                    <div class="name">screen</div>
                    <div class="fontclass">.rws-screen</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-time1"></i>
                    <div class="name">time1</div>
                    <div class="fontclass">.rws-time1</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-largest-twin"></i>
                    <div class="name">largest-twin</div>
                    <div class="fontclass">.rws-largest-twin</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-location1"></i>
                    <div class="name">location1</div>
                    <div class="fontclass">.rws-location1</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-Dormant"></i>
                    <div class="name">dormant</div>
                    <div class="fontclass">.rws-Dormant</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-line-time"></i>
                    <div class="name">line-time</div>
                    <div class="fontclass">.rws-line-time</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-exit"></i>
                    <div class="name">exit</div>
                    <div class="fontclass">.rws-exit</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-menu"></i>
                    <div class="name">menu</div>
                    <div class="fontclass">.rws-menu</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-ticket1"></i>
                    <div class="name">ticket1</div>
                    <div class="fontclass">.rws-ticket1</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-enter"></i>
                    <div class="name">enter</div>
                    <div class="fontclass">.rws-enter</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-select-all"></i>
                    <div class="name">select-all</div>
                    <div class="fontclass">.rws-select-all</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-mobile-delete"></i>
                    <div class="name">mobile-delete</div>
                    <div class="fontclass">.rws-mobile-delete</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-no-contact"></i>
                    <div class="name">no-contact</div>
                    <div class="fontclass">.rws-no-contact</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-no-telephone"></i>
                    <div class="name">no-telephone</div>
                    <div class="fontclass">.rws-no-telephone</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-direction-down"></i>
                    <div class="name">direction-down</div>
                    <div class="fontclass">.rws-direction-down</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-direction-left"></i>
                    <div class="name">direction-left</div>
                    <div class="fontclass">.rws-direction-left</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-direction-up"></i>
                    <div class="name">direction-up</div>
                    <div class="fontclass">.rws-direction-up</div>
                </li>
            
                <li>
                <i class="icon iconfont rws-direction-right"></i>
                    <div class="name">direction-right</div>
                    <div class="fontclass">.rws-direction-right</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">rws-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
